from cmd.command import Cmd
from jvm.vm import JVM

if __name__ == '__main__':
    args = ["com.dkd.test.simple.Test2",
            "--classpath", r"D:\app\workspace\study-bytes\asm4\target\classes",
            "", "--xjre", "D:\\app\\env\\jdk8\\jre"]
    cmd = Cmd().parseCmd(args=args)
    vm = JVM(cmd=cmd)
    vm.loadClass(className="java.lang.Long")
    test2 = vm.loadClass(className=cmd.Class)
    vm.start()
